
#ifndef _ERROR_CODE_H__INCLUDED_
#define _ERROR_CODE_H__INCLUDED_

typedef unsigned int NEBULA_ERROR_CODE;

#define NEBULA_ERR_SUCCESS                    0

#define NEBULA_ERR_INVALID_ARGUMENT           1
#define NEBULA_ERR_NO_MEMORY                  2
#define NEBULA_ERR_INTERNAL_ERROR             3
#define NEBULA_ERR_SYSTEM_API_FAILURE         4
#define NEBULA_ERR_TIMEOUT                    5
#define NEBULA_ERR_EOF                        6
#define NEBULA_ERR_NO_RESULT_FOUND            7
#define NEBULA_ERR_PARTIAL_RESULT_FOUND       8
#define NEBULA_ERR_SERIALIZE_FAILED           9
#define NEBULA_ERR_UNSERIALIZE_FAILED        10
#define NEBULA_ERR_PY_SCRIPT_ERROR           11
#define NEBULA_ERR_CONFLICT_RECORD         12

#define NEBULA_ERR_UNSUPPORTED_METHOD        40
#define NEBULA_ERR_UNSUPPORTED_URI           41
#define NEBULA_ERR_BAD_REQUEST               42
#define NEBULA_ERR_SVR_UNINITIALIZED         43
#define NEBULA_ERR_SVR_INITIALIZING          44
#define NEBULA_ERR_SVR_BUSY                  45
#define NEBULA_ERR_SVR_CLOSING               46
#define NEBULA_ERR_SVR_CLOSED                47
#define NEBULA_ERR_NO_SUCH_SERVICE           48
#define NEBULA_ERR_SERVICE_ALREADY_EXIST     49

#define NEBULA_ERR_GENERIC_ERROR             99

#define NEBULA_USER_ERROR                   100

#endif // _ERROR_CODE_H__INCLUDED_

